package cn.rwklyd.BookKeeping.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 图表数据VO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "图表数据VO")
public class ChartDataVO {
    /**
     * 总金额
     */
    @Schema(description = "总金额", example = "1439.66")
    private BigDecimal totalAmount;
    
    /**
     * 平均金额
     */
    @Schema(description = "平均金额", example = "205.67")
    private BigDecimal averageAmount;
    
    /**
     * 图表数据
     */
    @Schema(description = "图表数据，按时间顺序排列的金额列表")
    private List<BigDecimal> chartData;
    
    /**
     * 图表标签
     */
    @Schema(description = "图表标签，与图表数据一一对应", example = "['周一', '周二', '周三', '周四', '周五', '周六', '周日']")
    private List<String> labels;
    
    /**
     * 时间标签（第X周/X月/X年）
     */
    @Schema(description = "时间标签", example = "第25周")
    private String timeLabel;
} 